package com.a16.yuejian.yuejian.service;

import com.a16.yuejian.yuejian.javabean.Club;
import com.a16.yuejian.yuejian.javabean.Collected;
import com.a16.yuejian.yuejian.javabean.Master;
import com.a16.yuejian.yuejian.javabean.Success;
import com.a16.yuejian.yuejian.javabean.Video;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by 王子恒 on 2017/9/28.
 */

public interface ClubService {
    @GET("index.php/api/club/allclub")
    Call<List<Club>> allclub(

    );
    @GET("index.php/api/club/getclub")
    Call<Club> getclub(
            @Query("clubid")String clubid
    );
    @GET("index.php/api/club/getclubcoach")
    Call<List<Master>> getclubcoach(
            @Query("clubid")String clubid
    );

    @GET("index.php/api/club/getclubvideo")
    Call<List<Video>> getclubvideo(
    );

    @GET("index.php/api/index/follow")
    Call<Success> follow(
            @Query("id")String id,
            @Query("uid")String uid,
            @Query("type")String type
    );

    @GET("index.php/api/index/isCollected")
    Call<Collected> isCollected(
            @Query("id")String id,
            @Query("uid")String uid,
            @Query("type")String type
    );
}
